package com.eorchis.module.trainingclass.domain;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.eorchis.utils.utils.PropertyUtil;

/**
 * Title: SyncTrainingClassQueryBean<br>
 * Description: 同步数据时培训班信息实体对象<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author HuangTF
 * @createDate 2014-1-9
 * @version $Revision$
 */

public class SyncTrainingClassQueryBean {

	private String classId;//培训班ID
	private String className;//培训班名称
	private String classType;//培训班类型
	private String organizerId;//主办单位ID
	private String organizerName;//主办单位名称
	private Date beginDate;//开班时间
	private Date endDate;//结班时间
	private String beginDateStr;//开班时间 yyyy-MM-dd
	private String endDateStr;//结班时间 yyyy-MM-dd
	private Double trainingDay;//培训天数
	private Double trainingHour;//培训课时
	private Long reportedNum;//已报人数 
	private Integer classUserNum;//班级人数
	private Integer syncClassState;//培训班同步状态     1：已同步   2：未同步
	private Integer syncUserState;//人员同步状态	  1：已同步   2：未同步
	private Integer syncTrainingHoursState;//学时同步状态	  1：已同步   2：未同步
	
	private BigInteger reportedNumBig;
	private Integer ROWNUM_;
	public void setROWNUM_(Integer rOWNUM_) {
		ROWNUM_ = rOWNUM_;
	}
	
	public String getOrganizerId() {
		return organizerId;
	}
	public void setOrganizerId(String organizerId) {
		this.organizerId = organizerId;
	}
	public String getClassId() {
		return classId;
	}
	public void setClassId(String classId) {
		this.classId = classId;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getClassType() {
		return classType;
	}
	public void setClassType(String classType) {
		this.classType = classType;
	}
	public String getOrganizerName() {
		return organizerName;
	}
	public void setOrganizerName(String organizerName) {
		this.organizerName = organizerName;
	}
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		if(beginDate!=null)
		{
			setBeginDateStr(new SimpleDateFormat("yyyy-MM-dd").format(beginDate));
		}
		this.beginDate = beginDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		if(endDate!=null)
		{
			setEndDateStr(new SimpleDateFormat("yyyy-MM-dd").format(endDate));
		}
		this.endDate = endDate;
	}
	public Double getTrainingHour() {
		return trainingHour;
	}
	public void setTrainingHour(Double trainingHour) {
		if(PropertyUtil.objectNotEmpty(trainingHour))
		{
			this.setTrainingDay(Math.ceil(trainingHour/8));
		}
		this.trainingHour = trainingHour;
	}
	public Double getTrainingDay() {
		return trainingDay;
	}
	public void setTrainingDay(Double trainingDay) {
		this.trainingDay = trainingDay;
	}
	public String getBeginDateStr() {
		return beginDateStr;
	}
	public void setBeginDateStr(String beginDateStr) {
		this.beginDateStr = beginDateStr;
	}
	public String getEndDateStr() {
		return endDateStr;
	}
	public void setEndDateStr(String endDateStr) {
		this.endDateStr = endDateStr;
	}
	public Long getReportedNum() {
		return reportedNum;
	}
	public void setReportedNum(Long reportedNum) {
		this.reportedNum = reportedNum;
	}
	public Integer getSyncClassState() {
		return syncClassState;
	}
	public void setSyncClassState(Integer syncClassState) {
		this.syncClassState = syncClassState;
	}
	public Integer getSyncUserState() {
		return syncUserState;
	}
	public void setSyncUserState(Integer syncUserState) {
		this.syncUserState = syncUserState;
	}
	public Integer getSyncTrainingHoursState() {
		return syncTrainingHoursState;
	}
	public void setSyncTrainingHoursState(Integer syncTrainingHoursState) {
		this.syncTrainingHoursState = syncTrainingHoursState;
	}
	public BigInteger getReportedNumBig() {
		return reportedNumBig;
	}
	public void setReportedNumBig(BigInteger reportedNumBig) {
		if(reportedNumBig!=null)
		{
			setReportedNum(Long.parseLong(reportedNumBig.toString()));
		}
		this.reportedNumBig = reportedNumBig;
	}
	public Integer getClassUserNum() {
		return classUserNum;
	}
	public void setClassUserNum(Integer classUserNum) {
		this.classUserNum = classUserNum;
	}
	
}
